<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Catch&#39;em all:  Fichier source de liste.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="BLACK2.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catch&#39;em all
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple Blackjack game.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('liste_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Énumérations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">liste.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="liste_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef LISTE_H_INCLUDED</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LISTE_H_INCLUDED</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="carte_8h.html">carte.h</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structs_cellule.html">   12</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_cellule.html">sCellule</a></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <a class="code" href="struct_carte.html">Carte</a> * info;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">struct </span><a class="code" href="structs_cellule.html">sCellule</a>* suivant;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;} <a class="code" href="struct_cellule.html">Cellule</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structs_liste.html">   19</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_liste.html">sListe</a></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="struct_cellule.html">Cellule</a>* ad;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;} <a class="code" href="struct_liste.html">Liste</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">/* Gestion Memoire */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<a class="code" href="struct_liste.html">Liste</a> * initListe();</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keywordtype">void</span> testamentListe(<a class="code" href="struct_liste.html">Liste</a> **);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">/* FIN Gestion Memoire */</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Insertion &amp; Supression &amp; Retrait */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keywordtype">void</span> insertElement(<a class="code" href="struct_liste.html">Liste</a> *,<a class="code" href="struct_carte.html">Carte</a> *);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keywordtype">void</span> supprElement(<a class="code" href="struct_liste.html">Liste</a> *);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<a class="code" href="struct_carte.html">Carte</a> * retireEnTete(<a class="code" href="struct_liste.html">Liste</a> *);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">/* FIN Insertion &amp; Supression &amp; Retrait */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">/* Affichage */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keywordtype">void</span> afficheListe(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a> *);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">/* FIN Affichage */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">/* ACCES*/</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<a class="code" href="struct_cellule.html">Cellule</a> * iemeCellule (<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a> *,<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<a class="code" href="struct_carte.html">Carte</a> *getInfo(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a> *,<span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNombreElement(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">/* FIN ACCES*/</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">/*----Utilisation de la structure liste pour les mains----*/</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*Le mot main sera parfois remplacé par sa traduction anglaise hand</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">pour éviter les conflits avec le mot clé main(programme principal)*/</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keywordtype">int</span> <a class="code" href="liste_8c.html#ae6f179f0a50d7684162dee5c5c2b396a">testSeparerListe</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<a class="code" href="struct_liste.html">Liste</a>* <a class="code" href="liste_8c.html#aa98b873910cb6555130bf99fbd771d93">separeListe</a>(<a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="liste_8c.html#aeb9beda27f0e9a0e3c333ed48af7a15b">testNombreCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="liste_8c.html#a53dd89d992bc4ae6dc2725eec2270ea5">valeurMain</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="liste_8c.html#a7f6b2e7301501bff5c6d587278c7a663">getValeurMain</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a> *);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keywordtype">int</span> <a class="code" href="liste_8c.html#a1f6f53818a0813731b25bf75b75d5a5b">testBlackjack</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keywordtype">int</span> <a class="code" href="liste_8c.html#af378215cadf1118bf2fcf8ff97b04b7d">testSaute</a>(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a>*);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keywordtype">void</span> afficheMain(<span class="keyword">const</span> <a class="code" href="struct_liste.html">Liste</a> * hand);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="liste_8c_html_a7f6b2e7301501bff5c6d587278c7a663"><div class="ttname"><a href="liste_8c.html#a7f6b2e7301501bff5c6d587278c7a663">getValeurMain</a></div><div class="ttdeci">unsigned int getValeurMain(const Liste *hand)</div><div class="ttdoc">Accesseur pour la valeur d&amp;#39;une main. Utilise la fonction valeurMain. </div><div class="ttdef"><b>Definition:</b> liste.c:218</div></div>
<div class="ttc" id="structs_cellule_html"><div class="ttname"><a href="structs_cellule.html">sCellule</a></div><div class="ttdef"><b>Definition:</b> liste.h:12</div></div>
<div class="ttc" id="struct_liste_html"><div class="ttname"><a href="struct_liste.html">Liste</a></div></div>
<div class="ttc" id="liste_8c_html_aeb9beda27f0e9a0e3c333ed48af7a15b"><div class="ttname"><a href="liste_8c.html#aeb9beda27f0e9a0e3c333ed48af7a15b">testNombreCarte</a></div><div class="ttdeci">unsigned int testNombreCarte(const Liste *hand)</div><div class="ttdoc">Retourne le nombre de carte d&amp;#39;une main. </div><div class="ttdef"><b>Definition:</b> liste.c:183</div></div>
<div class="ttc" id="carte_8h_html"><div class="ttname"><a href="carte_8h.html">carte.h</a></div></div>
<div class="ttc" id="liste_8c_html_ae6f179f0a50d7684162dee5c5c2b396a"><div class="ttname"><a href="liste_8c.html#ae6f179f0a50d7684162dee5c5c2b396a">testSeparerListe</a></div><div class="ttdeci">int testSeparerListe(const Liste *hand)</div><div class="ttdoc">Test si on peux proposer la séparation. </div><div class="ttdef"><b>Definition:</b> liste.c:166</div></div>
<div class="ttc" id="liste_8c_html_aa98b873910cb6555130bf99fbd771d93"><div class="ttname"><a href="liste_8c.html#aa98b873910cb6555130bf99fbd771d93">separeListe</a></div><div class="ttdeci">Liste * separeListe(Liste *hand)</div><div class="ttdoc">Sépare une main en deux. </div><div class="ttdef"><b>Definition:</b> liste.c:171</div></div>
<div class="ttc" id="struct_cellule_html"><div class="ttname"><a href="struct_cellule.html">Cellule</a></div></div>
<div class="ttc" id="liste_8c_html_af378215cadf1118bf2fcf8ff97b04b7d"><div class="ttname"><a href="liste_8c.html#af378215cadf1118bf2fcf8ff97b04b7d">testSaute</a></div><div class="ttdeci">int testSaute(const Liste *hand)</div><div class="ttdoc">Test si la valeur d&amp;#39;une main est supérieure strictement à 21. </div><div class="ttdef"><b>Definition:</b> liste.c:230</div></div>
<div class="ttc" id="struct_carte_html"><div class="ttname"><a href="struct_carte.html">Carte</a></div></div>
<div class="ttc" id="liste_8c_html_a53dd89d992bc4ae6dc2725eec2270ea5"><div class="ttname"><a href="liste_8c.html#a53dd89d992bc4ae6dc2725eec2270ea5">valeurMain</a></div><div class="ttdeci">unsigned int valeurMain(const Liste *hand)</div><div class="ttdoc">Calcul la valeur d&amp;#39;une main. </div><div class="ttdef"><b>Definition:</b> liste.c:188</div></div>
<div class="ttc" id="structs_liste_html"><div class="ttname"><a href="structs_liste.html">sListe</a></div><div class="ttdef"><b>Definition:</b> liste.h:19</div></div>
<div class="ttc" id="liste_8c_html_a1f6f53818a0813731b25bf75b75d5a5b"><div class="ttname"><a href="liste_8c.html#a1f6f53818a0813731b25bf75b75d5a5b">testBlackjack</a></div><div class="ttdeci">int testBlackjack(const Liste *hand)</div><div class="ttdoc">Test si un main est éligible au Blackjack. Les conditions sont, deux cartes et une valeur de 21...</div><div class="ttdef"><b>Definition:</b> liste.c:224</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="liste_8h.html">liste.h</a></li>
    <li class="footer">Généré le Dimanche Décembre 15 2013 18:27:50 pour Catch&#39;em all par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
